package duoxiaoduosheng;

public class BunCustomer extends BunHandler{
	public BunCustomer(StackPack stackPack, String name) {
		super(stackPack, name);
	}
	@Override
	void toDo() {
		try {
			while (true) {
				this.stackPack.eat(this.name);
				Thread.sleep(2000);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}


